* lisp/files.el (write-file): Do not display confirm dialog for NS,
authorJan D. <jan.h.d@swipnet.se>
Sat, 6 Jul 2013 17:58:41 +0000 (19:58 +0200)
committerJan D. <jan.h.d@swipnet.se>
Sat, 6 Jul 2013 17:58:41 +0000 (19:58 +0200)
commit7c317d0a9da495988f6ca978757cc188a1459924
treea13bb1b4420f029de4b006b89195d9a6fdf6b960
parentdaec5594cd21e30469f2a489875a89c8e931bee9
* lisp/files.el (write-file): Do not display confirm dialog for NS,
it does its own dialog, which can't be cancelled.

* src/nsfns.m: Remove panelOK.
(ns_fd_data): New.
(ns_run_file_dialog): New function.
(Fns_read_file_name): Fill in ns_fd_data, post an event and start the
event loop, so file dialog is popped up by ns_run_file_dialog, called
by sendEvent (Bug#14578).
(EmacsSavePanel, EmacsOpenPanel): Remove ok and cancel methods.

* src/nsterm.h (NSSavePanel): Update comment.
(NSAPP_DATA2_RUNFILEDIALOG): Define.
(ns_run_file_dialog): Declare.

* src/nsterm.m (sendEvent:): Handle NSAPP_DATA2_RUNFILEDIALOG.
lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/nsfns.m
src/nsterm.h
src/nsterm.m